3.163 \(\int \frac{x^{7/2} (A+B x^3)}{(a+b x^3)^2} \, dx\)

Optimal. Leaf size=95 \[ -\frac{x^{3/2} (A b-3 a B)}{3 a b^2}+\frac{(A b-3 a B) \tan ^{-1}\left (\frac{\sqrt{b} x^{3/2}}{\sqrt{a}}\right )}{3 \sqrt{a} b^{5/2}}+\frac{x^{9/2} (A b-a B)}{3 a b \left (a+b x^3\right )} \]

[Out]

-((A*b - 3*a*B)*x^(3/2))/(3*a*b^2) + ((A*b - a*B)*x^(9/2))/(3*a*b*(a + b*x^3)) + ((A*b - 3*a*B)*ArcTan[(Sqrt[b
]*x^(3/2))/Sqrt[a]])/(3*Sqrt[a]*b^(5/2))

________________________________________________________________________________________

Rubi [A]  time = 0.0550496, antiderivative size = 95, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.227, Rules used = {457, 321, 329, 275, 205} \[ -\frac{x^{3/2} (A b-3 a B)}{3 a b^2}+\frac{(A b-3 a B) \tan ^{-1}\left (\frac{\sqrt{b} x^{3/2}}{\sqrt{a}}\right )}{3 \sqrt{a} b^{5/2}}+\frac{x^{9/2} (A b-a B)}{3 a b \left (a+b x^3\right )} \]

Antiderivative was successfully verified.

[In]

Int[(x^(7/2)*(A + B*x^3))/(a + b*x^3)^2,x]

[Out]

-((A*b - 3*a*B)*x^(3/2))/(3*a*b^2) + ((A*b - a*B)*x^(9/2))/(3*a*b*(a + b*x^3)) + ((A*b - 3*a*B)*ArcTan[(Sqrt[b
]*x^(3/2))/Sqrt[a]])/(3*Sqrt[a]*b^(5/2))

Rule 457

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> -Simp[((b*c - a*d
)*(e*x)^(m + 1)*(a + b*x^n)^(p + 1))/(a*b*e*n*(p + 1)), x] - Dist[(a*d*(m + 1) - b*c*(m + n*(p + 1) + 1))/(a*b
*n*(p + 1)), Int[(e*x)^m*(a + b*x^n)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && NeQ[b*c - a*d, 0] &
& LtQ[p, -1] && (( !IntegerQ[p + 1/2] && NeQ[p, -5/4]) ||  !RationalQ[m] || (IGtQ[n, 0] && ILtQ[p + 1/2, 0] &&
 LeQ[-1, m, -(n*(p + 1))]))

Rule 321

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(c^(n - 1)*(c*x)^(m - n + 1)*(a + b*x^n
)^(p + 1))/(b*(m + n*p + 1)), x] - Dist[(a*c^n*(m - n + 1))/(b*(m + n*p + 1)), Int[(c*x)^(m - n)*(a + b*x^n)^p
, x], x] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0] && GtQ[m, n - 1] && NeQ[m + n*p + 1, 0] && IntBinomialQ[a, b,
 c, n, m, p, x]

Rule 329

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> With[{k = Denominator[m]}, Dist[k/c, Subst[I
nt[x^(k*(m + 1) - 1)*(a + (b*x^(k*n))/c^n)^p, x], x, (c*x)^(1/k)], x]] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0]
 && FractionQ[m] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 275

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> With[{k = GCD[m + 1, n]}, Dist[1/k, Subst[Int[x^((m
 + 1)/k - 1)*(a + b*x^(n/k))^p, x], x, x^k], x] /; k != 1] /; FreeQ[{a, b, p}, x] && IGtQ[n, 0] && IntegerQ[m]

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rubi steps

\begin{align*} \int \frac{x^{7/2} \left (A+B x^3\right )}{\left (a+b x^3\right )^2} \, dx &=\frac{(A b-a B) x^{9/2}}{3 a b \left (a+b x^3\right )}+\frac{\left (-\frac{3 A b}{2}+\frac{9 a B}{2}\right ) \int \frac{x^{7/2}}{a+b x^3} \, dx}{3 a b}\\ &=-\frac{(A b-3 a B) x^{3/2}}{3 a b^2}+\frac{(A b-a B) x^{9/2}}{3 a b \left (a+b x^3\right )}+\frac{(A b-3 a B) \int \frac{\sqrt{x}}{a+b x^3} \, dx}{2 b^2}\\ &=-\frac{(A b-3 a B) x^{3/2}}{3 a b^2}+\frac{(A b-a B) x^{9/2}}{3 a b \left (a+b x^3\right )}+\frac{(A b-3 a B) \operatorname{Subst}\left (\int \frac{x^2}{a+b x^6} \, dx,x,\sqrt{x}\right )}{b^2}\\ &=-\frac{(A b-3 a B) x^{3/2}}{3 a b^2}+\frac{(A b-a B) x^{9/2}}{3 a b \left (a+b x^3\right )}+\frac{(A b-3 a B) \operatorname{Subst}\left (\int \frac{1}{a+b x^2} \, dx,x,x^{3/2}\right )}{3 b^2}\\ &=-\frac{(A b-3 a B) x^{3/2}}{3 a b^2}+\frac{(A b-a B) x^{9/2}}{3 a b \left (a+b x^3\right )}+\frac{(A b-3 a B) \tan ^{-1}\left (\frac{\sqrt{b} x^{3/2}}{\sqrt{a}}\right )}{3 \sqrt{a} b^{5/2}}\\ \end{align*}

Mathematica [A]  time = 0.103562, size = 77, normalized size = 0.81 \[ \frac{\frac{\sqrt{b} x^{3/2} \left (3 a B-A b+2 b B x^3\right )}{a+b x^3}+\frac{(A b-3 a B) \tan ^{-1}\left (\frac{\sqrt{b} x^{3/2}}{\sqrt{a}}\right )}{\sqrt{a}}}{3 b^{5/2}} \]

Antiderivative was successfully verified.

[In]

Integrate[(x^(7/2)*(A + B*x^3))/(a + b*x^3)^2,x]

[Out]

((Sqrt[b]*x^(3/2)*(-(A*b) + 3*a*B + 2*b*B*x^3))/(a + b*x^3) + ((A*b - 3*a*B)*ArcTan[(Sqrt[b]*x^(3/2))/Sqrt[a]]
)/Sqrt[a])/(3*b^(5/2))

________________________________________________________________________________________

Maple [A]  time = 0.016, size = 93, normalized size = 1. \begin{align*}{\frac{2\,B}{3\,{b}^{2}}{x}^{{\frac{3}{2}}}}-{\frac{A}{3\,b \left ( b{x}^{3}+a \right ) }{x}^{{\frac{3}{2}}}}+{\frac{Ba}{3\,{b}^{2} \left ( b{x}^{3}+a \right ) }{x}^{{\frac{3}{2}}}}+{\frac{A}{3\,b}\arctan \left ({b{x}^{{\frac{3}{2}}}{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{Ba}{{b}^{2}}\arctan \left ({b{x}^{{\frac{3}{2}}}{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(7/2)*(B*x^3+A)/(b*x^3+a)^2,x)

[Out]

2/3*B*x^(3/2)/b^2-1/3/b*x^(3/2)/(b*x^3+a)*A+1/3/b^2*x^(3/2)/(b*x^3+a)*B*a+1/3/b/(a*b)^(1/2)*arctan(b*x^(3/2)/(
a*b)^(1/2))*A-1/b^2/(a*b)^(1/2)*arctan(b*x^(3/2)/(a*b)^(1/2))*B*a

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(7/2)*(B*x^3+A)/(b*x^3+a)^2,x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 1.76392, size = 478, normalized size = 5.03 \begin{align*} \left [\frac{{\left ({\left (3 \, B a b - A b^{2}\right )} x^{3} + 3 \, B a^{2} - A a b\right )} \sqrt{-a b} \log \left (\frac{b x^{3} - 2 \, \sqrt{-a b} x^{\frac{3}{2}} - a}{b x^{3} + a}\right ) + 2 \,{\left (2 \, B a b^{2} x^{4} +{\left (3 \, B a^{2} b - A a b^{2}\right )} x\right )} \sqrt{x}}{6 \,{\left (a b^{4} x^{3} + a^{2} b^{3}\right )}}, -\frac{{\left ({\left (3 \, B a b - A b^{2}\right )} x^{3} + 3 \, B a^{2} - A a b\right )} \sqrt{a b} \arctan \left (\frac{\sqrt{a b} x^{\frac{3}{2}}}{a}\right ) -{\left (2 \, B a b^{2} x^{4} +{\left (3 \, B a^{2} b - A a b^{2}\right )} x\right )} \sqrt{x}}{3 \,{\left (a b^{4} x^{3} + a^{2} b^{3}\right )}}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(7/2)*(B*x^3+A)/(b*x^3+a)^2,x, algorithm="fricas")

[Out]

[1/6*(((3*B*a*b - A*b^2)*x^3 + 3*B*a^2 - A*a*b)*sqrt(-a*b)*log((b*x^3 - 2*sqrt(-a*b)*x^(3/2) - a)/(b*x^3 + a))
 + 2*(2*B*a*b^2*x^4 + (3*B*a^2*b - A*a*b^2)*x)*sqrt(x))/(a*b^4*x^3 + a^2*b^3), -1/3*(((3*B*a*b - A*b^2)*x^3 +
3*B*a^2 - A*a*b)*sqrt(a*b)*arctan(sqrt(a*b)*x^(3/2)/a) - (2*B*a*b^2*x^4 + (3*B*a^2*b - A*a*b^2)*x)*sqrt(x))/(a
*b^4*x^3 + a^2*b^3)]

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(7/2)*(B*x**3+A)/(b*x**3+a)**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [A]  time = 1.11211, size = 92, normalized size = 0.97 \begin{align*} \frac{2 \, B x^{\frac{3}{2}}}{3 \, b^{2}} - \frac{{\left (3 \, B a - A b\right )} \arctan \left (\frac{b x^{\frac{3}{2}}}{\sqrt{a b}}\right )}{3 \, \sqrt{a b} b^{2}} + \frac{B a x^{\frac{3}{2}} - A b x^{\frac{3}{2}}}{3 \,{\left (b x^{3} + a\right )} b^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(7/2)*(B*x^3+A)/(b*x^3+a)^2,x, algorithm="giac")

[Out]

2/3*B*x^(3/2)/b^2 - 1/3*(3*B*a - A*b)*arctan(b*x^(3/2)/sqrt(a*b))/(sqrt(a*b)*b^2) + 1/3*(B*a*x^(3/2) - A*b*x^(
3/2))/((b*x^3 + a)*b^2)